/*
 * Utils.cpp
 *
 *  Created on: 18 Jun 2011
 *      Author: allan
 */

#include "Utils.h"

// C++ includes
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <set>

// Boost includes
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>

// GeoReact includes
#include "Database.h"

template<class Vector> ostream&
PrintOperator(ostream& out, const Vector& vec)
{
	BOOST_FOREACH(const typename Vector::value_type val, vec)
		out << val << ", ";
	
	return out;
}

ostream& operator<<(ostream& out, const vector<string>& vec)
{
	return PrintOperator(out, vec);
}

ostream& operator<<(ostream& out, const vector<double>& vec)
{
	return PrintOperator(out, vec);
}

ostream& operator<<(ostream& out, const vector<unsigned>& vec)
{
	return PrintOperator(out, vec);
}
